import request from '@/utils/request';

//获取周边资源信息
export function surroundings(query) {
  return request({
    url: '/largescreen/api/largeScree/getModelResource',
    method: 'get',
    params: query
  });
}

//获取气象数据
export function weather(query) {
  return request({
    url: '/largescreen/api/largeScree/getModelWeather',
    method: 'get',
    params: query
  });
}

//获取热力图
export function getHeatMap(query) {
  return request({
    url: '/largescreen/api/largeScree/getHeatMap',
    method: 'get',
    params: query,
    timeout: 0
  });
}

//获取路径规划
export function getRoutePlanning(query) {
  return request({
    url: '/largescreen/api/largeScree/routeAnalyseByCoordinate',
    method: 'get',
    params: query
  });
}

//转应急工单
export function toWorkOrder(data) {
  return request({
    url: '/largescreen//waringInfo/largeGenerateOrder',
    method: 'post',
    data
  });
}

//新增预警
export function addWarn(data) {
  return request({
    url: '/largescreen/waringInfo',
    method: 'post',
    data
  });
}
